/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package protocol;

import org.w3c.dom.Element;
import server.managerServer.executors.ExecutorResume;

/**
 *
 * @author radu
 */
public class MessageResumeReq extends Message {

    private long pollId = 0;

    public MessageResumeReq(Element root) {
        pollId = Integer.valueOf(root.getAttribute("id"));
    }

    public MessageResumeReq(long pollId) {
        this.pollId = pollId;
    }

    @Override
    public String toString() {
        return "<resume id=\""+pollId+ "\"></resume>\r\n";
    }

    @Override
    public Executor getServerExecutor() {
        return new ExecutorResume(this);
    }

    public long getPollId() {
        return pollId;
    }
}
